package com.chi.pojo;

public class Leave {
private int id;
private int empno;
private int deptno;
private String type;
private String reason;
private String time;
public Leave() {
	super();
}

public Leave(int empno, int deptno, String type, String reason, String time) {
	super();
	this.empno = empno;
	this.deptno = deptno;
	this.type = type;
	this.reason = reason;
	this.time = time;
}

public Leave(int id, int empno, int deptno, String type, String reason, String time) {
	super();
	this.id = id;
	this.empno = empno;
	this.deptno = deptno;
	this.type = type;
	this.reason = reason;
	this.time = time;
}

public String getType() {
	return type;
}

public void setType(String type) {
	this.type = type;
}

public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public int getEmpno() {
	return empno;
}
public void setEmpno(int empno) {
	this.empno = empno;
}
public int getDeptno() {
	return deptno;
}
public void setDeptno(int deptno) {
	this.deptno = deptno;
}
public String getReason() {
	return reason;
}
public void setReason(String reason) {
	this.reason = reason;
}
public String getTime() {
	return time;
}
public void setTime(String time) {
	this.time = time;
}

@Override
public String toString() {
	return "Leave [id=" + id + ", empno=" + empno + ", deptno=" + deptno + ", type=" + type + ", reason=" + reason
			+ ", time=" + time + "]";
}


}
